import scrapy
from scrapy import cmdline


class KdlSpiderSpider(scrapy.Spider):
    name = "kdl_spider"
    allowed_domains = ["dev.kdlapi.com"]
    start_urls = ["http://dev.kdlapi.com/"]

    def parse(self, response, **kwargs):
        print(response.text)


if __name__ == '__main__':
    cmdline.execute('scrapy crawl kdl_spider'.split())